package com.example.test003.service.impl;

import com.example.test003.mapper.VideoTokenMapper;
import com.example.test003.pojo.VideoToken;
import com.example.test003.service.VideoTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VideoTokenServiceImpl implements VideoTokenService {

    @Autowired
    private VideoTokenMapper videoTokenMapper;




    @Override
    public VideoToken getTimeBytoken(String token, String cityname) {
        VideoToken videoToken=videoTokenMapper.getTimeBytoken(token,cityname);
        return videoToken;
    }

    @Override
    public void insertVideoToken(String token, String endtime, String cityname) {
        videoTokenMapper.insertVideoToken(token,endtime,cityname);
    }
}
